<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>美业后台管理系统</title>
    <meta content="webkit|ie-comp|ie-stand" name="renderer">
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" name="viewport" />
    <meta content="no-siteapp" http-equiv="Cache-Control" />
    <style type="text/css">
        ::-webkit-scrollbar {display:none}
        #reply{
            display: none;
            z-index: 999999999;
        }
        .layui-layer-page{
            z-index: 9999;
        }
    </style>

    <link href="/static/temp/css/font.css" rel="stylesheet">
    <link href="/static/temp/css/xadmin.css" rel="stylesheet">

    <script src="/static/temp/js/jquery.min.js"></script>
    <script charset="utf-8" src="/static/temp/layui/layui.js"></script>
    <script src="/static/temp/js/xadmin.js" type="text/javascript" ></script>
</head>
<body>
<!-- 顶部开始 -->
<div class="container">
    <div class="logo"><a href="">美业管理平台</a></div>
    <div class="left_open">
        <i class="iconfont" title="展开左侧栏">&#xe699;</i>
    </div>
    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:;">{$admin.nickname}</a>
            <dl class="layui-nav-child">
                <dd><a href="{:url('login/login_out')}">退出</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item to-index"><a href="#"></a></li>
    </ul>
</div>
<!-- 顶部结束 -->

<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav" style="width: 220px;">
            {foreach name="menu" item="vo"}
            {if in_array($vo['id'], $role) != false || $admin['role_id'] == 0}
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#{$vo->getData('icon')};</i>
                    <cite>{$vo.name}</cite>
                    <i class="iconfont nav_right">&#xe6a7;</i>
                </a>
                <ul class="sub-menu">
                    {foreach name="vo.list" item="a"}
                    <li><a _href="{$a.rule}"><i class="iconfont"></i><cite>{$a.name}</cite></a></li>
                    {/foreach}
                </ul>
            </li>
            {/if}
            {/foreach}

            {if $admin['role_id'] != 2}
            <li>
                <a _href="{:url('Shop/shop_list')}">
                    <i class="iconfont">&#xe722;</i>
                    <cite>门店管理</cite>
                    <i class="iconfont nav_right">&#xe6a7;</i>
                </a>
            </li>
            {else /}
            <li>
                <a _href="{:url('Shop/shop_edit')}?id={$admin.id}">
                    <i class="iconfont">&#xe722;</i>
                    <cite>门店管理</cite>
                    <i class="iconfont nav_right">&#xe6a7;</i>
                </a>
            </li>
            {/if}

            {if $admin['role_id'] == 2}
            <li>
                <a _href="{:url('Face/face')}">
                    <i class="iconfont">&#xe722;</i>
                    <cite>人脸识别</cite>
                    <i class="iconfont nav_right">&#xe6a7;</i>
                </a>
            </li>
            {/if}
        </ul>
    </div>
</div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-allowclose="false" lay-filter="xbs_tab">
        <ul class="layui-tab-title">
            <li class="home" ><i class="layui-icon">&#xe68e;</i>首页</li>

        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe class="x-iframe" frameborder="0" scrolling="yes" src="{:url('index/home')}"></iframe>
            </div>
        </div>
    </div>
</div>
<div class="page-content-bg"></div>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->

<!-- 底部开始 -->
<!--<div class="footer">
    <div class="copyright">Copyright ©2019 L-admin v2.3 All Rights Reserved</div>
</div>-->
<!-- 底部结束 -->

</body>
<script type="text/javascript">
    layui.use(['element', 'layer', 'jquery'], function () {
        var element = layui.element;

        //此处省略N行代码

        element.on('tab(demo)', function(data){
            var src=$(".layui-tab-item.layui-show").find("iframe").attr("src");
            $(".layui-tab-item.layui-show").find("iframe").attr("src",src);
        });

    })
</script>
</html>